/* pages/materialSelect/materialSelect.wxss */
.material-select {
  width: 100vw;
  background-color: #f8f8f8;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.material-select .header{
  width: 100%;
  height: 170rpx;
  overflow: hidden;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  padding: 15rpx;
  background-color: white;
  align-items: center;
  justify-content: space-between;
}

.search-input {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 12rpx 20rpx;
  flex: 1;
  border: 1rpx solid #00b9b8;
}

.search-icon {
  color: #999;
  font-size: 24rpx;
  margin-right: 10rpx;
}

.search-input input {
  flex: 1;
  font-size: 28rpx;
  height: 40rpx;
  line-height: 40rpx;
}

.warehouse-picker {
  width: 200rpx;
  height: 70rpx;
  border: 1rpx solid #00b9b8;
  border-right: none;
  border-top-left-radius: 10rpx;
  border-bottom-left-radius: 10rpx;
  border-right: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.picker-text {
  width:200rpx;
  height: 70rpx;
  font-size: 22rpx;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-btn {
  width: 120rpx;
  height: 74rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00b9b8;
  color: white;
  font-size: 24rpx;
  padding: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* 全选 */
.select-all {
  padding: 12rpx 20rpx;
  background-color: white;
 
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 28rpx;
  color: #333;
}

.checkbox-label checkbox,
.item-checkbox checkbox.checkbox-small {
  transform: scale(0.8);
  margin-right: 10rpx;
}

/* 物料列表 */
.material-list {
  height: calc(100vh - 270rpx);
}

.material-item {
  display: flex;
  padding:20rpx 20rpx;
  box-sizing: border-box;
  background-color: white;
  align-items: center;
  border-bottom: 1rpx solid #eee;
}

.item-checkbox checkbox {
  transform: scale(1.2);
  transform-origin: 0 0;
  .checkbox-small {
    transform: scale(0.5);
    transform-origin: 0 0;
  }
}

.item-content {
  flex: 1;
  padding-left: 20rpx;
}



.item-info {
  flex: 1;
}

.item-name {
  font-size: 30rpx;
  color: #333;
  margin-bottom: 8rpx;
  font-weight: 500;
}

.item-code, .item-spec, .item-stock {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 3rpx;
}

/* 数量控制 */
.item-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10rpx;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-top: 5rpx;
}

.quantity-btn {
  width: 50rpx;
  height: 50rpx;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 50%;
  padding: 0;
  line-height: 50rpx;
  font-size: 32rpx;
}

.quantity-btn:disabled {
  background-color: #eee;
  color: #ccc;
}

.quantity-input {
  width: 80rpx;
  height: 50rpx;
  text-align: center;
  font-size: 28rpx;
  border: 1rpx solid #eee;
  margin: 0 10rpx;
  border-radius: 8rpx;
}

.stock-warning {
  color: #ff4d4f;
  font-size: 24rpx;
  margin-top: 5rpx;
  background-color: #fff1f0;
  padding: 3rpx 10rpx;
  border-radius: 4rpx;
}

/* 底部按钮 */
.bottom-bar {
  display: flex;
  height: 100rpx;
  align-items: flex-end;
  background-color: white;
  border-top: 1rpx solid #eee;
}
.confirm-btn {
  flex: 1;
  height: 100rpx;
  font-size: 32rpx;
  line-height: 80rpx;
  border-radius: 0;
}

.confirm-btn {
  background-color: #00b9b8;
  color: white;
}


